package com.ruoyi.board.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.board.mapper.StockBoardIndustryHistEmMapper;
import com.ruoyi.board.domain.StockBoardIndustryHistEm;
import com.ruoyi.board.service.IStockBoardIndustryHistEmService;
import com.ruoyi.common.core.text.Convert;

/**
 * 东方财富-指数-日频Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class StockBoardIndustryHistEmServiceImpl implements IStockBoardIndustryHistEmService 
{
    @Autowired
    private StockBoardIndustryHistEmMapper stockBoardIndustryHistEmMapper;

    /**
     * 查询东方财富-指数-日频
     * 
     * @param id 东方财富-指数-日频ID
     * @return 东方财富-指数-日频
     */
    @Override
    public StockBoardIndustryHistEm selectStockBoardIndustryHistEmById(Long id)
    {
        return stockBoardIndustryHistEmMapper.selectStockBoardIndustryHistEmById(id);
    }

    /**
     * 查询东方财富-指数-日频列表
     * 
     * @param stockBoardIndustryHistEm 东方财富-指数-日频
     * @return 东方财富-指数-日频
     */
    @Override
    public List<StockBoardIndustryHistEm> selectStockBoardIndustryHistEmList(StockBoardIndustryHistEm stockBoardIndustryHistEm)
    {
        return stockBoardIndustryHistEmMapper.selectStockBoardIndustryHistEmList(stockBoardIndustryHistEm);
    }

    /**
     * 新增东方财富-指数-日频
     * 
     * @param stockBoardIndustryHistEm 东方财富-指数-日频
     * @return 结果
     */
    @Override
    public int insertStockBoardIndustryHistEm(StockBoardIndustryHistEm stockBoardIndustryHistEm)
    {
        return stockBoardIndustryHistEmMapper.insertStockBoardIndustryHistEm(stockBoardIndustryHistEm);
    }

    /**
     * 修改东方财富-指数-日频
     * 
     * @param stockBoardIndustryHistEm 东方财富-指数-日频
     * @return 结果
     */
    @Override
    public int updateStockBoardIndustryHistEm(StockBoardIndustryHistEm stockBoardIndustryHistEm)
    {
        return stockBoardIndustryHistEmMapper.updateStockBoardIndustryHistEm(stockBoardIndustryHistEm);
    }

    /**
     * 删除东方财富-指数-日频对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryHistEmByIds(String ids)
    {
        return stockBoardIndustryHistEmMapper.deleteStockBoardIndustryHistEmByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除东方财富-指数-日频信息
     * 
     * @param id 东方财富-指数-日频ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryHistEmById(Long id)
    {
        return stockBoardIndustryHistEmMapper.deleteStockBoardIndustryHistEmById(id);
    }
}
